package com.jbit.hxy.model.dto;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;


@Setter
@Getter
@NoArgsConstructor
public class PhonePasswordDTO {

    @NotBlank(message = "请输入手机号")
    @Pattern(regexp = "1[3456789]\\d{9}",message = "请输入正确的手机号")
    private String phone;


    @NotBlank(message = "请输入登录密码")
    @Length(min = 6,max = 20,message = "密码长度至少6位字符")
    private String password;
}
